<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>二维码分享</title>

    <link rel="stylesheet" type="text/css" th:href="@{/assets/css/bootstrap.min.css}">

    <link rel="stylesheet" type="text/css" th:href="@{/assets/fonts/line-icons.css}">

    <link rel="stylesheet" th:href="@{/assets/plugins/morris/morris.css}">

    <link rel="stylesheet" type="text/css" th:href="@{/assets/css/icons.css}">

    <link rel="stylesheet" type="text/css" th:href="@{/assets/css/main.css}">

    <link rel="stylesheet" type="text/css" th:href="@{/assets/css/responsive.css}">

    <link rel="stylesheet" th:href="@{/css/common.css}">

    <script th:src="@{/assets/js/jquery-min.js}"></script>
    <script th:src="@{/assets/js/popper.min.js}"></script>
    <script th:src="@{/assets/js/bootstrap.min.js}"></script>
    <script th:src="@{/assets/js/jquery.app.js}"></script>
    <script th:src="@{/assets/js/main.js}"></script>

    <script th:src="@{/assets/plugins/morris/morris.min.js}"></script>
    <script th:src="@{/assets/plugins/raphael/raphael-min.js}"></script>
</head>
<script type="text/javascript" ckharset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=2&lang=zh"></script>
<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>
<script th:inline="javascript">
   $(function () {
       var $shareBox = $(".bshare-custom");
       var registerPath = $("#registerPath").val();

       console.log(registerPath);
       //绑定分享事件
       $shareBox.children("a").click(function() {
           var parents = $(this).parent();
           bShare.addEntry({
               title: parents.attr("title"),
               url: ""+registerPath,
               summary: parents.attr("summary"),
               pic: parents.attr("pic")
           });
       });
   });
</script>

<body>
<div class="app header-default side-nav-dark">
    <div class="layout">
        <div class="header navbar">
            <div class="header-container">
                <ul class="nav-left">
                    <li>
                        <a href="javascript:history.back(-1);">
                            <i class="lni-chevron-left" style="border: transparent;"></i>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="page-container" style="padding: 64px 0 0 0!important;">
            <div class="main-content" style="padding-top: 15px!important;">
                <div class="container-fluid">
                    <div class="card">
                        <div class="card-body">
                            <div class="row">
                                <div class="col-lg-10 col-md-12 col-xs-12">
                                    <div class="text-center">
                                        <img th:src="'/upload/'+${currentTimeMillis}">
                                    </div>
                                    <div class="bshare-custom" title="" summary="" th:pic="${image001}">
                                        <p class="d-inline-block">分享：</p><br>
                                        <a title="分享到微信" class="bshare-weixin" href="javascript:void(0);"></a>
                                        <a title="分享到朋友网" class="bshare-qqxiaoyou" href="javascript:void(0);"></a>
                                        <a title="分享到QQ好友" class="bshare-qqim" href="javascript:void(0);"></a>
                                        <a title="分享到QQ空间" class="bshare-qzone"></a>
                                        <a title="分享到新浪微博" class="bshare-sinaminiblog"></a>
                                    </div>
                                    <input id="registerPath" style="display: none" th:value="${registerPath}">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>